//导入moment

const moment = require('moment');

let nowdate = moment(
    
).format('YYYY-MM-DD HH:mm:ss');
console.log(nowdate);